package com.baogu.factoryjob.controller;

import com.baogu.factoryjob.service.remote.TestRemoteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
public class TestController {

    @Autowired
    private TestRemoteService testRemoteService;

    @GetMapping("test")
    public Map test(){
        String result = testRemoteService.test();
        Map<String,String> map = new HashMap<String,String>();
        map.put("result",result);
        return map;
    }
}
